package dd.view;
import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;

import dd.control.CreateButtonController;
import dd.model.Event;

import javax.swing.JTextField;


public class MainScreen extends JFrame {


	private JPanel contentPane;
	private JTextField textFieldID;

	/**
	 * Launch the application.
	 */
	

	/**
	 * Create the frame.
	 */
	public MainScreen() {
		setTitle("Main Screen DD ");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnCreate = new JButton("Create");
		btnCreate.setBounds(21, 59, 117, 29);
		contentPane.add(btnCreate);
		
		btnCreate.addActionListener(new CreateButtonController(this));
		
		
		JButton btnAdministration = new JButton("Administration");
		btnAdministration.setBounds(256, 59, 147, 29);
		contentPane.add(btnAdministration);
		
		JButton btnJoin = new JButton("Join");
		btnJoin.setBounds(21, 171, 117, 29);
		contentPane.add(btnJoin);
		
		textFieldID = new JTextField();
		textFieldID.setBounds(175, 175, 117, 21);
		contentPane.add(textFieldID);
		textFieldID.setColumns(10);
	}
}
